<?php
/**
 * Created by PhpStorm.
 * User: sujianyong
 * Date: 2022/6/12
 * Time: 17:03
 */

namespace app\canteen\admin;

use app\common\model\StReservationAttr;

class Index extends Base
{
    public function index()
    {
        $date = date('Y-m-d',time());
        $wucan    = StReservationAttr::getStReservationAttrTotalNumber($date,'午餐');
        $wancan   = StReservationAttr::getStReservationAttrTotalNumber($date,'晚餐');
//        var_dump($this->prefi);exit;
        return $this->fetch('index',
            [
                'wucan'=> $wucan,
                'wancan'=> $wancan,
            ]
        );
    }

}